(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.SocialProfileModel = (function(_super) {

    __extends(SocialProfileModel, _super);

    function SocialProfileModel() {
      return SocialProfileModel.__super__.constructor.apply(this, arguments);
    }

    SocialProfileModel.prototype.defaults = {
      Login: '',
      Email: '',
      Avatar: ''
    };

    SocialProfileModel.prototype.url = function() {
      var url;
      url = SiteMap.Profile.SocialShow + "?login=" + this.attributes.Login;
      return url;
    };

    SocialProfileModel.prototype.parse = function(response) {
      var attr;
      attr = {};
      attr.Login = response.Login;
      attr.Email = response.Email;
      if (response.Avatar != null) {
        attr.Avatar = "/myLibrary/Uploads/" + response.Avatar;
      }
      return attr;
    };

    return SocialProfileModel;

  })(Backbone.Model);

}).call(this);
